home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #1 / Amiga Plus 1995 #1.iso / animationen / mainactor / docs / arexx.doc next >
Text File  |  1994-12-13  |  7KB  |  352 lines

  1.  
  2. MainActor Arexx Doc
  3. -------------------
  4.      
  5. The arexx port name is "MAINACTOR".
  6.  
  7. Format:
  8.  
  9. <>     Parmaters in these angle brackets have to be supplied
  10.  
  11. []     Parameters in square brackets are optional
  12.  
  13. |      Vertical bars mean OR and are used to seperate
  14.        options of which you can choose one : [ON | OFF]
  15.  
  16. The result variable contains the result of the operation, its possible
  17. contents are listed in the command reference.
  18.  
  19. The returncode (rc) contains 0 for success, 10 for error and 20
  20. for fatal error.
  21.  
  22. Look at the rexx:mainactor/ directory for examples.
  23.  
  24. MAINACTOR DOES NOT SUPPORT BLANKS IN FILENAMES WHICH ARE AREXX ARGUMENTS !!
  25.  
  26. ------------------------------------------------------
  27.  
  28. Append
  29. ------
  30.  
  31.     Appends the selected frames/pictures of the source project
  32.     to the destination project (look at MainActor.Doc).
  33.     
  34.  result: -
  35.  
  36. DeSelectAll
  37. -----------
  38.  
  39.  Deselects all frames/pictures in the source project.
  40.     
  41.  result: -
  42.  
  43.  REFERENCE: SelectAll,SelectRange,DeSelectRange
  44.  
  45. DeSelectRange <from> <to>
  46. -------------------------
  47.  
  48.  Will deselect all frames/pictures in the source project from the
  49.  integer value <from> to <to>
  50.      
  51.  result: -
  52.  
  53.  REFERENCE: SelectAll,DeSelectAll,SelectRange
  54.  
  55. DeSelectRangeRequest
  56. --------------------
  57.  
  58.  The DeSelectRange requester will appear, letting you choose
  59.  the frames/pictures to deselect.
  60.     
  61.  result: -
  62.  
  63.  REFERENCE: SelectAll,DeSelectAll,SelectRangeRequest
  64.  
  65. GetSPInfo
  66. ---------
  67.  
  68.  returns 7 arguments :
  69.  
  70.  the width of the Source Project, followed by its height, followed
  71.  by the amount of Colors ('HAM6','HAM8','EHB' will be given back
  72.  literally for AdPro compatibility), followed by the number of 
  73.  frames/pictures in your project, followed by "CACHING=NO"
  74.  or "CACHING=YES" depending if you have caching en/disabled, followed
  75.  by "LOOP=YES" or "LOOP=NO" depending on the loop status and at last
  76.  "CPF=YES" or "CPF=NO" depending on your color per frame status.
  77.  
  78.  Picture lists have LOOP disabled and CPF enabled.
  79.  
  80.  result: width height colors pics caching loop cpf
  81.  
  82.  EXAMPLES:
  83.  
  84.  result=320 256 HAM6 220 CACHING=YES LOOP=YES CPF=NO
  85.  
  86.  or
  87.  
  88.  result=320 256 16 10 CACHING=YES LOOP=YES CPF=YES
  89.   
  90. GetSPLoader
  91. -----------
  92.  
  93.  returns two arguments, the first is "ANIM" or "PIC"
  94.  depending of the loader module type of the source project.
  95.  The second argument is the name of the module itself.
  96.  
  97.  result: ModuleType ModuleName
  98.  
  99.  REFERENCE: SetSPLoader,GetSPSaver,SetSPSaver
  100.  
  101. GetSPName
  102. ---------
  103.  
  104.  source project has an animation loaded :
  105.   
  106.   returns the full animation name with path
  107.   
  108.  source project has a picture list loaded
  109.  
  110.   returns two arguments, the first is the name of the
  111.   first picture with full path, the second is the name
  112.   of the last picture without path.
  113.  
  114.  result: Name of animation or name of first/last picture.
  115.  
  116.  REFERENCE: LoadProject
  117.  
  118. GetSPSaver
  119. ----------
  120.  
  121.  returns two arguments, the first is "ANIM" or "PIC"
  122.  depending of the saver module type of the source project.
  123.  The second argument is the name of the module itself.
  124.  
  125.  result: ModuleType ModuleName
  126.  
  127.  REFERENCE: SetSPLoader,GetSPLoader,SetSPSaver
  128.  
  129. LoadProject <Name1> [Name2]
  130. ---------------------------
  131.  
  132.  LoadProject will load an animation or picture list, according to
  133.  the type of the load module of the source project.
  134.  
  135.  <Name1> is the name of the animation or the name of the first picture
  136.  of the picture list.
  137.  
  138.  [Name2] is only needed when you want to load a picture list, it is
  139.  the name of the last picture.
  140.  
  141.  Example : 
  142.  
  143.  LoadProject "Graphics:CountAnim.00001" "Graphics:CountAnim.00010"
  144.  
  145.  or
  146.  
  147.  LoadProject "Graphics:CountAnim.00001" "CountAnim.00010"
  148.  
  149.  or
  150.  
  151.  LoadProject "Graphics:Test/mandel7_32"
  152.  
  153.  result: -
  154.  
  155. OpenNewProject [CACHING]
  156. ------------------------
  157.  
  158.  Opens a new project window (up to five)
  159.  If you supply the CACHING parameter, the project window
  160.  will have caching enabled, otherwise it will be disabled.
  161.  
  162.  result: -
  163.  
  164. PlayProject
  165. -----------
  166.  
  167.  Plays the animation of the source project.
  168.  
  169.  result: -
  170.  
  171. Quit
  172. ----
  173.  
  174.  Closes all projects and quits MainActor.
  175.  
  176.  result: - 
  177.  
  178. PrintTxt <text>
  179. ---------------
  180.     
  181.  Displays <text> in the Text Buffer Window.
  182.  
  183.  result: -
  184.  
  185. PrintAndStoreTxt <text>
  186. -----------------------
  187.  
  188.  Displays and buffers <text> in the Text Buffer Window.
  189.     
  190.  result: -
  191.  
  192. RequestInteger <InitValue> <text>
  193. ---------------------------------
  194.  
  195.  This command pops up an integer requester, <text> will
  196.  be displayed above the integer value which was initialized with
  197.  <InitValue>.
  198.  
  199.  Example:
  200.  
  201.  RequestInteger 640 "Enter new Width"
  202.  
  203.  result: integer value
  204.  
  205. Save <Name> [CPF=YES|NO] [LOOP=YES|NO]
  206. --------------------------------------
  207.  
  208.  An animation saver saves the selected frames into a new animation
  209.  under the name you put in the <Name> parameter. CPF decides wether
  210.  you want a color palette per frame of not, LOOP decides if you
  211.  want to have a looping animation. LOOP and CPF overrule the
  212.  normal behaviour, if you dont supply them, everything will be saved
  213.  as though you had activated the "Save" gadget (look at MainActor.Doc).
  214.  
  215.  If you have a picture saver, <Name> is the base name for the pictures,
  216.  LOOP and CPF have, in this case, no meaning.
  217.  
  218.  result: -
  219.  
  220. ScreenToBack
  221. ------------
  222.  
  223.  Flips the MainActor screen to the back.
  224.     
  225.  result: -
  226.  
  227.  REFERENCE: WBToFront,ScreenToFront
  228.      
  229. ScreenToFront
  230. -------------
  231.  
  232.  Flips the MainActor screen to the front.
  233.     
  234.  result: -
  235.  
  236.  REFERENCE: WBToFront,ScreenToBack
  237.  
  238. SelectAll
  239. ---------
  240.  
  241.  Selects all frames/pictures in the source project.
  242.     
  243.  result: -
  244.  
  245.  REFERENCE: DeSelectAll,SelectRange,DeSelectRange
  246.  
  247. SelectRange
  248. -----------
  249.  
  250.  Will select all frames/pictures in the source project from the
  251.  integer value <from> to <to>
  252.     
  253.  result: -
  254.  
  255.  REFERENCE: SelectAll,DeSelectAll,DeSelectRange
  256.  
  257. SelectRangeRequest
  258. ------------------
  259.  
  260.  The SelectRange requester will appear, letting you choose
  261.  the frames/pictures to select.
  262.     
  263.  result: -
  264.  
  265.  REFERENCE: SelectAll,DeSelectAll,DeSelectRangeRequest
  266.  
  267. ShowPictures
  268. ------------
  269.  
  270.  Shows the selected pictures/frames of the source project.
  271.  
  272.  result: -
  273.  
  274. SetSPLoader <ModuleType> <ModuleName>
  275. -------------------------------------
  276.  
  277.  sets the load module of the source project to the module
  278.  type <ModuleType> with the module name <ModuleName>.
  279.  
  280.  result:-
  281.  
  282.  EXAMPLES: 
  283.  
  284.  SetSPLoader PIC IFF
  285.  
  286.  SetSPLoader ANIM "IFF-Anim5"
  287.  
  288.  REFERENCE: GetSPLoader,GetSPSaver,SetSPSaver
  289.  
  290. SetSPSaver <ModuleType> <ModuleName>
  291. ------------------------------------
  292.  
  293.  sets the save module of the source project to the module
  294.  type <ModuleType> with the module name <ModuleName>.
  295.  
  296.  result:-
  297.  
  298.  EXAMPLES: 
  299.  
  300.  SetSPSaver PIC IFF
  301.  
  302.  SetSPSaver ANIM "IFF-Anim5"
  303.  
  304.  REFERENCE: GetSPLoader,GetSPSaver,SetSPLoader
  305.  
  306. SetTimecode <Timecode>
  307. ----------------------
  308.  
  309.  sets <Timecode> (a value from 1 to 999) in the selected frames
  310.  of the source project.
  311.  
  312.  result: -
  313.  
  314. SwapDeActivatedToSource
  315. -----------------------
  316.  
  317.  Flips the first deactivated project to the source and the source
  318.  project to the destination project.
  319.  
  320.  result: -
  321.  
  322. SwapProjects
  323. ------------
  324.  
  325.  Flips the destination project to the source and the source
  326.  project to the destination project.
  327.  
  328.  result: -
  329.  
  330. UnloadProject
  331. -------------
  332.  
  333.  Unloads the current project of the source project.
  334.  
  335.  result: -
  336.  
  337. Version
  338. -------
  339.     
  340.  result: The actual version string of MainActor.
  341.     
  342. WBToFront
  343. ---------
  344.  
  345.  Flips the WorkBench screen to the front.
  346.     
  347.  result: -
  348.     
  349.  REFERENCE: ScreenToFront
  350.     
  351. ------------------------------------------------------
  352.